README file from "demos" directory
~opengl2/demos README Copyright 1991-96, Silicon Graphics, Inc. Technical Education Development All Rights Reserved. Addtional demonstration programs for the OpenGL Programming 2 class. blendCollage.c: Demonstrates how to use the GL_EXT_blend_color extensions to blend images that do not have an alpha channel. This program displays images at random positions in a window, and uses a constant blending function to blend the images. The blending factor can be changed interactively. An option allows the images to be zoomed by a randow zoom factor. Up to MAX_IMAGES can be read. To run, type: blendCollage <imageFile1.rgb> [<imageFile2.rgb>] ... Try "blendCollage /usr/demos/data/textures/*.rgb" LEFT Mousebutton, down - randomly choose a new image Up Arrow - increase blend factor Down Arrow - decrease blend factor <c> key - clear window to background color SPACEBAR - toggle fixed/random zoom Escape key - exit the program earth.c Demonstrates the various texture environment modes with an RGB image. It maps a texture onto a quadric sphere. By default, it creates a texture from the earth.rgb image. A different image can be specified on the command line. The environment modes can be changed interactively. <e> Key - cycle through environment modes <s> Key - toggle earth rotation on/off <t> Key - toggle texturing on/off Escape Key - exit program oglextensions.c Prints the GL, GLU and GLX extensions supported by the server. The -display option can be used to specify the server. If it is not specified on the command line, the local display is used. oversphere.c Demonstrates how to use the overlay plane with GLUT. Press and drag the mouse buttons to choose the position of a sphere before rendering it. Left Mouse Button - position red spheres Middle Mouse Button - position green spheres Right Mouse Button - position blue spheres Escape key - exit program panZoom.c: pans around on a subimage when the Left Mousebutton is dragged. Zooming can be controlled interactively. Left Mousebutton, down - pan subimage <z> key - zoom in on subimage <Z> key - zoom out on subimage Escape key - exit the program pixmap.c: demonstrates rendering to a pixmap. NOTE: This program does not run on RealityEngine systems in 5.3. p key - render to pixmap w key - render to window c key - copy pixmap to window Escape Key - exit program glwstereo.c A motif program which uses the GLw widget. Uses quad-buffer stereo if a suitable visual can be found, otherwise tries to use the SGIFullScreenStereo extension. Right Mousebutton, down - popup menu subtexture.c: reads in an rgb image and uses it to texture a polygon in the left half of the window. It then uses the GL_EXT_subtexture extensions to replace the middle of the image texture with an artificually created striped texture. The new texture is mapped to a polygon in the right half of the window. Escape key - exit the program surfgrid.c Demonstrates polygon offset and multisampling extensions. Renders a torus with a grid outlining it. Control keys: p toggle polygon offset m toggle multisampling S increase polygon offset factor s decrease polygon offset factor B increase polygon offset bias b decrease polygon offset bias g toggle grid drawing f toggle smooth/flat shading n toggle whether to use GL evaluators or GLU nurbs u decr number of segments in U direction U incr number of segments in U direction v decr number of segments in V direction V incr number of segments in V direction Escape key - exit the program multiwin.c: Create multiple windows display different views of the same scene. Left Mousebutton - move eyepoint in polarview window Middle Mousebutton - change twist angle in polarview window Right Mousebutton - zoom in/out in all windows <f> key - toggle filled/wireframe cylinder <R> key - reset viewpoint Escape key - exit the program lens - Roam around a very large image using textures tiles. Demonstrates the use of subtexture and texture color table extensions. Up/Down arrow - zoom in/out <l> key - cycle through texture lookup tables <w> key - cycle through warping effects Left mouse - drag image Middle/Right mouse - rotate image CCW/CW <h/?> key - help Esc - quit
Source
Documentation
Data
Images
Reference
Subdirectories